/*放置页面的公共样式*/

/*去除浏览器默认样式*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*背景*/
.container {
    width: 100%;
    height: calc(100% - 50px);

    /*为了让内部对话框垂直居中*/
    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(180deg, rgb(78, 168, 241), rgb(255, 255, 255));
}

/*设定页面高度*/
html, body {
    height: 100%;
}

/*设定导航栏样式*/
.nav {
    position: fixed;
    top: 0;
    left: 0;
    /* 改为左侧固定 */
    right: 0;
    /* 保持右侧自适应 */
    width: 100%;
    height: 70px;
    /* 增加导航栏高度 */
    background-color: transparent;
    z-index: 1000;
    display: flex;
    align-items: center;
    /* 垂直居中 */
    padding: 0 5%;
    box-sizing: border-box;
}


/* Logo样式 */
.logo-container {
    position: absolute;
    left: 3%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.nav-logo {
    margin-top: 30%;
    height: 80px;
    /* 显著放大logo尺寸 */
    width: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
    /* 添加阴影增强立体感 */
}

/* 鼠标悬停效果 */
.nav-logo:hover {
    transform: scale(1.05);
    /* 轻微放大 */
    opacity: 0.9;
}

/* 导航菜单横向排列 */
.nav-list {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-left: auto;
}

.nav-list a {
    color: #ffffff;
    /* 默认文字颜色 */
    text-decoration: none;
    font-family: '幼圆', sans-serif;
    font-size: 20px;
    font-weight: bold;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
}

/* 鼠标悬停效果 */
/* 悬停下划线动画 */
.nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: rgb(255, 255, 255);
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}